﻿using System.Collections.Generic;

namespace eCommMongo.Web.Models.Posts
{
    public class PostModel
    {
        public IList<string> Tags { get; set; }
        public string PosterLogoUrl { get; set; }
        public string Text{ get; set; }
        public IList<PostPictureModel> Pics { get; set; }
        public bool IsProduct { get; set; }

        public ProductStatusInfo ProductStatusInfo { get; set; }

        public int Id { get; set; }
        public IList<CommentModel> CommentModels { get; set; }

        public int Point { get; set; }
    }


    public class ProductVariantInfo
    {
        public int ProductVariantId { get; set; }
        public int ProductStock { get; set; }
        public decimal ProductPrice { get; set; }
    }

    public class ProductStatusInfo:PostModel
    {
        public int ProductId { get; set; }
        public IList<ProductVariantInfo> PvInfos { get; set; }
    }
}